import Vue from 'vue'
import App from './App'
import router from './router'

Vue.config.productionTip = false
//rem适配
window.onresize = setHtmlFontSize;
function setHtmlFontSize(){
    const htmlWidth = document.documentElement.clientWidth || document.body.clientWidth;
    const htmlDom = document.getElementsByTagName('html')[0];
    htmlDom.style.fontSize = htmlWidth / 10 + 'px';
};
setHtmlFontSize();
import Vant from 'vant';
import 'vant/lib/index.css';
Vue.use(Vant);
//引入自己书写的全局的css样式
import '../static/css/common.css'

import Bottom from './components/Bottom/Bottom.vue'
Vue.component(Bottom.name,Bottom)
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
